package com.ruoyi.system.domain.info;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
@Schema(description = "应用版本补丁信息")
public class AppVersionPatchInfo {
    @Schema(description = "应用包名")
    private String packageName;
    @Schema(description = "应用名称")
    private String appName;
    @Schema(description = "开发商")
    private String vendor;

    // 版本信息
    @Schema(description = "版本名称")
    private String versionName;
    @Schema(description = "版本号")
    private Integer versionCode;

    // 系统要求
    @Schema(description = "最低系统版本要求")
    private Integer minApiVersion;

    @Schema(description = " 格式化后的版本(最低系统版本要求)")
    private String formattedMinApiVersion;

    @Schema(description = "目标系统版本")
    private Integer targetApiVersion;

    @Schema(description = "格式化的目标系统版本")
    private String formattedTargetApiVersion;


    @Schema(description = "SDK系统版本")
    private String compileSdkVersion;

    // 模块信息
    @Schema(description = "模块名称")
    private String moduleName;
    @Schema(description = "主ability")
    private String mainAbility;
    @Schema(description = "权限")
    private Object permissions;

    // 图标信息
    @Schema(description = "图标大小(字节)")
    private byte[] iconBytes;
    @Schema(description = "图标")
    private String iconPath;


    // 包信息
    @Schema(description = "包大小")
    private Double fileSizeMB; // MB

    @Schema(description = " 格式化后的 MB 字符串")
    private String formattedSize;

    //MD5  packageHash
    @Schema(description = "MD5")
    private String packageHash;

    @Schema(description = "包存储地址")
    private String packageUrl;
}
